home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr22
/
inc11.zip
/
INC.DOC
< prev
Wrap
Text File
|
1993-05-13
|
4KB
|
81 lines
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Shareware by TOM *
* *
* Goodies written in C, 80?86 assembler, FoxBase, and more. *
* *
* Support Shareware! Register your copy of this program. *
* *
* Register by mail to: *
* Shareware by Tom *
* 2371 N. 59th Street *
* Milwaukee, WI 53210-2215 *
* *
* Questions? Contact me by mail, or via Exec-PC bbs, 414-789-4210 *
* Exec-PC has MNP lines and various 9600 baud lines. *
* My username on EXEC is TOM PETERS. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* In brief: *
* *
* Program Name: INC Written in: ASM *
* *
* Registration Fee: $10 *
* *
* Summary of function: Creates, if needed, INC.DAT and increments a *
* count contained in INC.DAT each time it is run, also reports the *
* count. *
* *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
INC: Increment and report count.
INC is normally used to batch files to count the number of passes of some
set of functions. Example: Run DT (disk test) and count the number of
passes:
ECHO OFF
REM CLEAR THE COUNT
INC /C
:AGAIN
INC
DT /B /M
GOTO AGAIN
Command line options:
Current options include: /C /R /Q /H. Command line option letters can be
preceded by /, - or no switch character at all. They can be in any order.
The /H option (Help) and the /C option both cause INC to perform their
respective functions and NOT increment the count. If the /H option is seen
first on the command line, no other functions are performed. If the /C option
is first, no other options are performed.
/H Display help text.
/C Create a new, empty count file
/Q report only the count, no banner
/R report the count but do NOT increment it
Notes:
INC reports the count, and THEN increments it. If you run the program
and it reports that the count is 5, and then examine the INC.DAT file,
you will find that it contains the value of 6 in the first bytes.
The highest value INC.DAT can contain is 65535, because a two-byte area
(low byte first) is used to store it. If the count is incremented beyond
this value, it will simply wrap around to zero.
DOS EXIT CODES:
0 Whatever function (/C, /R) was selected was successful
2 The file could not be opened, and the reason was NOT that it didn't exist
3 The file was opened ok, but could not be read
If the file open for the counter file INC.DAT fails because the file does
not exist, INC just creates a new, empty one. INC.DAT must be in the
current directory.